<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        height: 100px;
        width: 100px;
        float: left;
        background: red;
      }
      .content {
        background: green;
        height: 300px;
        float: left;
        width: 500px;
      }
      #app {
        /* overflow: hidden; */
        /* display: flex; */
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div id="profile"></div>
      <div class="box"></div>
      <div class="content"></div>
    </div>
  </body>
</html>
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.8/dist/vue.js"></script>
<script>
  var Profile = Vue.extend({
    template: "<p>{{firstName}} {{lastName}} aka {{alias}}</p>",
    data: function () {
      return {
        firstName: "Walter",
        lastName: "White",
        alias: "Heisenberg",
      };
    },
  });

  // function message() {
  //   new Profile().$mount("#profile");
  // }

  // setTimeout(() => {
  //   message();
  // }, 2000);

  new Profile().$mount("#profile");
  new Vue({
    el: "#app",
    data: {
      num: 10,
    },
  });
</script>
